package com.loongtech.bi.entity.core;

import java.io.Serializable;

public class KeyDateRoleIdAndTaskId implements Serializable
{
	// 日期标识
	private String				date;
	// 角色标识
	private String				roleId;
	// 任务标识
	private int					taskId;
	private static final long	serialVersionUID	= 1L;

	public KeyDateRoleIdAndTaskId()
	{
	}

	public KeyDateRoleIdAndTaskId(String date, String roleId, int taskId)
	{
		this.date = date;
		this.roleId = roleId;
		this.taskId = taskId;
	}

	public String getDate()
	{
		return date;
	}

	public void setDate(String date)
	{
		this.date = date;
	}

	public String getRoleId()
	{
		return roleId;
	}

	public void setRoleId(String roleId)
	{
		this.roleId = roleId;
	}

	public int getTaskId()
	{
		return taskId;
	}

	public void setTaskId(int taskId)
	{
		this.taskId = taskId;
	}

	@Override
	public int hashCode()
	{
		final int prime = 31;
		int result = 1;
		result = prime * result + ((date == null) ? 0 : date.hashCode());
		result = prime * result + ((roleId == null) ? 0 : roleId.hashCode());
		result = prime * result + taskId;
		return result;
	}

	@Override
	public boolean equals(Object obj)
	{
		if (this == obj)
		{
			return true;
		}
		if (obj == null || getClass() != obj.getClass())
		{
			return false;
		}
		final KeyDateRoleIdAndTaskId o = (KeyDateRoleIdAndTaskId) obj;
		if (date == null && o.date != null || null != date && !date.equals(o.date))
		{
			return false;
		}
		if (roleId == null && o.roleId != null || null != roleId && !roleId.equals(o.roleId))
		{
			return false;
		}
		return taskId == o.taskId;
	}

	@Override
	public String toString()
	{
		return "KeyDateRoleIdAndTaskId [date=" + date + ", roleId=" + roleId + ", taskId=" + taskId + "]";
	}
}
